﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/MasterPage.master" AutoEventWireup="true"
    CodeFile="Register.aspx.cs" Inherits="Pages_Register" MaintainScrollPositionOnPostback="true" %>

<%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %>
<asp:Content ID="Content" ContentPlaceHolderID="MainContent" runat="Server">
<center>
    <asp:CreateUserWizard ID="CreateUserWizard" runat="server" OnCreatedUser="CreateUserWizard_CreatedUser"
        OnCreatingUser="CreateUserWizard_CreatingUser" CompleteSuccessText="Contul dvs. a fost creat cu succes."
        CreateUserButtonText="Creaza" DuplicateEmailErrorMessage="Adresa de e-mail pe care a&#355;i introdus este deja în uz. V&#259; rug&#259;m s&#259; introduce&#355;i o adres&#259; de e-mail diferit&#259;."
        DuplicateUserNameErrorMessage="V&#259; rug&#259;m s&#259; introduce&#355;i un nume de utilizator diferit."
        InvalidAnswerErrorMessage="V&#259; rug&#259;m s&#259; introduce&#355;i un r&#259;spuns de securitate diferite."
        InvalidEmailErrorMessage="V&#259; rug&#259;m s&#259; introduce&#355;i o adres&#259; de email valid&#259;."
        InvalidPasswordErrorMessage="Lungimea minim&#259; a parolei: {0}. Caracterele non-alfanumerice necesare: {1}."
        InvalidQuestionErrorMessage="V&#259; rug&#259;m s&#259; introduce&#355;i o întrebare de securitate diferita."
        CssClass="createUserWizard" UnknownErrorMessage="Contul dvs. nu a fost creat. V&#259; rug&#259;m s&#259; încerca&#355;i din nou.">
        <WizardSteps>
            <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                <ContentTemplate>
                    <center>
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server"  DisplayMode="BulletList" ForeColor="Red"/>
                        <table class="style1">
                            <tr>
                                <td colspan="3">
                                    <div class="center_title_bar">
                                        Date Personale</div>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2" style="width: 195px">
                                    <div>
                                        <div>
                                            Nume de utilizator*</div>
                                        <div>
                                            <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                CssClass="fieldRequired" ErrorMessage="Introdu nume de utilizator." ToolTip="Introdu nume de utilizator."
                                                ValidationGroup="CreateUserWizard">*</asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </td>
                                <td class="style3" style="width: 189px">
                                    <div>
                                        <div>
                                            Nume*
                                        </div>
                                        <div>
                                            <asp:TextBox ID="FirstName" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="FirstNameRequired" runat="server" ControlToValidate="FirstName"
                                                CssClass="fieldRequired" ErrorMessage="Introdu nume." ToolTip="Introdu nume."
                                                ValidationGroup="CreateUserWizard">*</asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </td>
                                <td>
                                    <div>
                                        <div>
                                            Prenume*
                                        </div>
                                        <div>
                                            <asp:TextBox ID="LastName" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="LastNameRequired" runat="server" ControlToValidate="LastName"
                                                CssClass="fieldRequired" ErrorMessage="Introdu prenume." ToolTip="Introdu prenume."
                                                ValidationGroup="CreateUserWizard">*</asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2" style="width: 195px">
                                    <div>
                                        <div>
                                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Parola*</asp:Label>
                                        </div>
                                        <div>
                                            <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                CssClass="fieldRequired" ErrorMessage="Introdu parola." ToolTip="Introdu parola."
                                                ValidationGroup="CreateUserWizard">*</asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </td>
                                <td class="style3" style="width: 189px">
                                    <div>
                                        <div>
                                            <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Verifica parola*</asp:Label>
                                        </div>
                                        <div>
                                            <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"
                                                CssClass="fieldRequired" ErrorMessage="Reintrodu parola." ToolTip="Reintrodu parola."
                                                ValidationGroup="CreateUserWizard">*</asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2" style="width: 195px">
                                    <div>
                                        <div>
                                            Adresa*</div>
                                        <div>
                                            <asp:TextBox ID="Adresa" runat="server" Height="76px" TextMode="MultiLine" Width="130px"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="AdresaRequired" runat="server" ControlToValidate="Adresa"
                                                CssClass="fieldRequired" ErrorMessage="Introduceti adresa." ToolTip="Introduceti adresa."
                                                ValidationGroup="CreateUserWizard">*</asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </td>
                                <td class="style3" style="width: 189px">
                                    <div>
                                        <div>
                                            Judet*</div>
                                        <div>
                                            <asp:TextBox ID="Judet" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="JudetRequired" runat="server" ControlToValidate="Judet"
                                                CssClass="fieldRequired" ErrorMessage="Introdu judetul." ToolTip="Introdu judetul."
                                                ValidationGroup="CreateUserWizard">*</asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </td>
                                <td>
                                    <div>
                                        <div>
                                            Oras/Sector*</div>
                                        <div>
                                            <asp:TextBox ID="Oras" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RegiuneRequired" runat="server" ControlToValidate="Oras"
                                                CssClass="fieldRequired" ErrorMessage="Introdu orasul/sectorul in care locuiesti."
                                                ToolTip="Introdu orasul/sectorul in care locuiesti." ValidationGroup="CreateUserWizard">*</asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2" style="width: 195px">
                                    <div>
                                        <div>
                                            Cod postal*</div>
                                        <div>
                                            <asp:TextBox ID="CodPostal" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="CodPostalRequired" runat="server" ControlToValidate="CodPostal"
                                                CssClass="fieldRequired" ErrorMessage="Introdu codul postal." ToolTip="Introdu codul postal."
                                                Display="Static" ValidationGroup="CreateUserWizard">*</asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="CodulPostal trebuie sa fie format din cifre"
                                                Display="Dynamic" CssClass="fieldRequired" ControlToValidate="CodPostal" ValidationGroup="CreateUserWizard"
                                                ValidationExpression="\d{6}" ToolTip="CodulPostal trebuie sa fie format din cifre">*</asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </td>
                                <td class="style3" style="width: 189px">
                                    &nbsp;
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2" style="width: 195px">
                                    <div>
                                        <div>
                                            Telefon mobil:</div>
                                        <div>
                                            <asp:TextBox ID="TelefonMobil" runat="server"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="TelRegularExpressionValidator1" runat="server"
                                                ErrorMessage="Numarul de telefon trebuie sa fie format din 10 cifre(ex: xxxx xxxxxx)"
                                                Display="Static" CssClass="fieldRequired" ControlToValidate="TelefonMobil" ValidationGroup="CreateUserWizard"
                                                ValidationExpression="\d{4}(-|\s|)\d{6}" ToolTip="Numarul de telefon trebuie sa fie format din cifre">*</asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </td>
                                <td class="style3" style="width: 189px">
                                    <div>
                                        <div>
                                            Telefon fix:</div>
                                        <div>
                                            <asp:TextBox ID="TelefonFix" runat="server"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Numarul de telefon trebuie sa fie format din 10 cifre(ex: xxxx xxxxxx)"
                                                Display="Static" CssClass="fieldRequired" ControlToValidate="TelefonFix" ValidationGroup="CreateUserWizard"
                                                ValidationExpression="\d{4}(-|\s|)\d{6}" ToolTip="Numarul de telefon trebuie sa fie format din cifre">*</asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2" style="width: 195px">
                                    <div>
                                        <div>
                                            <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail*</asp:Label>
                                        </div>
                                        <div>
                                            <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                                                CssClass="fieldRequired" Display="Dynamic" ErrorMessage="Introdu adresa de email."
                                                ToolTip="Introdu adresa de email." ValidationGroup="CreateUserWizard">*</asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="EmailExpressionValidator" runat="server" ErrorMessage="Adresa de email nu este valida."
                                                ToolTip="Adresa de email nu este valida." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                ControlToValidate="Email" CssClass="fieldRequired" ValidationGroup="CreateUserWizard">*</asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </td>
                                <td class="style3" style="width: 189px">
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2" style="width: 195px">
                                    <div>
                                        <div>
                                            <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question"> Întrebare de securitate*</asp:Label>
                                        </div>
                                        <div>
                                            <asp:TextBox ID="Question" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" ControlToValidate="Question"
                                                CssClass="fieldRequired" ErrorMessage="Security question is required." ToolTip="Security question is required."
                                                ValidationGroup="CreateUserWizard">*</asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </td>
                                <td class="style3" style="width: 189px">
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2" style="width: 195px">
                                    <div>
                                        <div>
                                            <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">R&#259;spuns de securitate*</asp:Label>
                                        </div>
                                        <div>
                                            <asp:TextBox ID="Answer" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" ControlToValidate="Answer"
                                                CssClass="fieldRequired" ErrorMessage="Security answer is required." ToolTip="Security answer is required."
                                                ValidationGroup="CreateUserWizard">*</asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </td>
                                <td class="style3" style="width: 189px">
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <div class="center_title_bar">
                                        Date facturare (optional)</div>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2" style="width: 195px">
                                    <div>
                                        <div>
                                            Cetatenie</div>
                                        <div>
                                            <asp:DropDownList ID="Cetatenie" runat="server">
                                                <asp:ListItem Selected="True">Romana</asp:ListItem>
                                                <asp:ListItem>Alta</asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </td>
                                <td class="style3" style="width: 189px">
                                    &nbsp;
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2" style="width: 195px">
                                    <div>
                                        <div>
                                            Cod numeric personal (CNP)</div>
                                        <div>
                                            <asp:TextBox ID="CNP" runat="server"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="Codul Numeric Personal trebui sa fie format din 13 cifre"
                                                ControlToValidate="CNP" ValidationExpression="\d{13}" CssClass="fieldRequired"
                                                ToolTip="Codul Numeric Personal trebui sa fie format din 13 cifre">*</asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </td>
                                <td class="style3" style="width: 189px">
                                    &nbsp;
                                    <div>
                                        <div>
                                            Serie si numar CI/BI</div>
                                        <div>
                                            <asp:TextBox ID="Serie" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </td>
                                <td>
                                    <div>
                                        <div>
                                            CI/BI eliberat de</div>
                                        <div>
                                            <asp:TextBox ID="EliberatDe" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <recaptcha:RecaptchaControl ID="RecaptchaControl" runat="server" PublicKey="6LfLp8MSAAAAAIG9RK-UXWwu2zyaQxQlXIzK42qa"
                                        PrivateKey="6LfLp8MSAAAAANlRuWsEkvh5pORfESE7uiBmMBx4 " Theme="white" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <div>
                                        <div style="text-align: center">
                                            <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                                                ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="Parolele introduse nu coincid."
                                                ValidationGroup="CreateUserWizard"></asp:CompareValidator>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <div>
                                        <div style="color: Red; text-align: center;">
                                            <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal><br />
                                            <asp:Label ID="CaptchaErrorMessage" runat="server" Text=""></asp:Label>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </center>
                </ContentTemplate>
            </asp:CreateUserWizardStep>
            <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
                <ContentTemplate>
                    <table>
                        <tr>
                            <td align="center">
                                Felicitari
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Contul dvs. a fost creat cu succes.
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Button ID="ContinueButton" runat="server" CausesValidation="False" CommandName="Continue"
                                    Text="Continua" ValidationGroup="CreateUserWizard" OnClick="ContinueButton_Click" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:CompleteWizardStep>
        </WizardSteps>
    </asp:CreateUserWizard>
    </center>
</asp:Content>
